package org.annotation.t.autowire;

import org.annotation.t.autowire.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AutowireRun {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("org.annotation.t/componentScan/bean.xml");
        UserController userController = context.getBean(UserController.class);
        userController.userController();
    }
}
